import request from "@/utils/request";

/**
 * 在线续约
 */
export const userLineRenew = async (service: string) => {
  return request.get(`/security/userStatus/line/renew/${service}`);
}

/**
 * 获取在线用户数
 */
export const getOnlineUserCount = async (params: any) => {
  return request.get(`/security/userStatus/line/getOnlineUserCount`, {
    params,
  });
}

/**
 * 获取在线用户
 */
export const getOnlineUser = async (params: any) => {
  return request.get(`/security/userStatus/line/getOnlineUser`, {
    params,
  });
}

/**
 * 在线续约
 */
export const offlineUser = async (service: string, userId: number) => {
  return request.get(`/security/userStatus/offline/${service}/${userId}`);
}
